package cn.edu.lingnan.pojo;

public class Student {
    private int id;
    private String name;
    private String password;
    private String gender;
    private String major;
    private String classX;
    private int right;
    private int flag;

    public Student(String name, String password, String gender, String major, String classX, int right, int flag) {
        this.name = name;
        this.password = password;
        this.gender = gender;
        this.major = major;
        this.classX = classX;
        this.right = right;
        this.flag = flag;
    }

    public Student(int id, String name, String password, String gender, String major, String classX, int right, int flag) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.gender = gender;
        this.major = major;
        this.classX = classX;
        this.right = right;
        this.flag = flag;
    }

    public Student() {

    }

    public Student(String name, String password, String gender, String major, String classX) {
        this.name = name;
        this.password = password;
        this.gender = gender;
        this.major = major;
        this.classX = classX;
    }

    public Student(int id, String name, String password, String gender, String major, String classX) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.gender = gender;
        this.major = major;
        this.classX = classX;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getClassX() {
        return classX;
    }

    public void setClassX(String classX) {
        this.classX = classX;
    }

    public int getRight() {
        return right;
    }

    public void setRight(int right) {
        this.right = right;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Student{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", password='").append(password).append('\'');
        sb.append(", gender='").append(gender).append('\'');
        sb.append(", major='").append(major).append('\'');
        sb.append(", classX='").append(classX).append('\'');
        sb.append(", right=").append(right);
        sb.append(", flag=").append(flag);
        sb.append('}');
        return sb.toString();
    }


}
